﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

using QuanLyQuanCafe.BusinessObject;
using QuanLyQuanCafe.DataAccess;
using System.Data;
using System.Data.SqlClient;
using System.Windows.Forms;

namespace QuanLyQuanCafe.BusinessLogic
{
    class DanhNhapBL
    {
        KetNoiDuLieu connect = new KetNoiDuLieu();
        public DataTable KiemTraThongTinDangNhap(DangNhapBO dangnhapBO)
        {
            string sql = string.Format("SELECT TaiKhoan, MatKhau FROM DANGNHAP WHERE TaiKhoan = '{0}' AND MatKhau = '{1}'", dangnhapBO.TaiKhoan, dangnhapBO.MatKhau);
            return connect.LayDanhSachDuLieu(sql);
        }
    }
}
